package com.ipan.weixin.msg;

import org.apache.http.entity.ContentType;

import com.ipan.weixin.WxConfiguration;

/**
 * 客服消息
 * 
 * 客服消息是指向微信接口POST一个JSON数据包来向普通用户发送消息；
 * 
 * http请求方式: POST
 * https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
 * 
 * TODO: 测试下，发送消息后是否收到回复？
 * 
 * @author iPan
 * @version 2013-12-25
 */
public interface JsonMsg {
	
	/** ContentType */
	public static final ContentType CONTENT_TYPE = ContentType.create("application/json", WxConfiguration.getInstance().getEncode());

	public String toJson();
	
}
